<div style="text-align: center;">
    <ul id="pagination" class="pagination"></ul>
</div>
<script>
    //分页
    $(function () {
        $('#pagination').twbsPagination({
            totalPages:${pageInfo.pages}||1,
            visiblePages:${pageInfo.pageSize},
            startPage:${pageInfo.pageNum}||1,
            first: "首页",
            prev: "上页",
            next: "下页",
            last: "尾页",
            onPageClick: function (event, page) {
                $('#currentPage').val(page);
                $('#searchForm').submit();
            }
        });
    })
</script>